//
//  SYButton.m
//  doubleEduStudents
//
//  Created by 盛洋 on 2021/1/12.
//  Copyright © 2021 shengYang. All rights reserved.
//

#import "SYButton.h"

@implementation SYButton

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
*/
- (void)drawRect:(CGRect)rect {
    [self.titleLabel setFont:AutoLabFont3];
    self.line_view = [[UIView alloc]init];
    [self addSubview:self.line_view];
    [self.line_view mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.mas_bottom).offset(5);
        make.centerX.equalTo(self.mas_centerX);
        make.height.equalTo(@(1));
        make.width.equalTo(@50);
    }];    
}

-(void)setIsChoose:(BOOL)isChoose{
    if (isChoose) {
        self.line_view.backgroundColor = [UIColor whiteColor];
    }else{
        self.line_view.backgroundColor = [UIColor clearColor];
    }
}

@end
